package com.achievement.mapper;

import com.achievement.domain.entity.MedicineEntity;
import com.achievement.domain.param.MedicineParam;
import com.achievement.domain.vo.MedicineVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;


public interface MedicineMapper extends BaseMapper<MedicineEntity>
{

    List<MedicineVO> selectByPage(@Param(value = "param")MedicineParam param, @Param(Constants.WRAPPER) Wrapper<MedicineEntity> queryWrapper);

    List<MedicineVO> selectByParam(@Param(value = "param")MedicineParam param,@Param(Constants.WRAPPER) Wrapper<MedicineEntity> queryWrapper);

    List<HashMap<String, Integer>> listStatistics(@Param(value = "param")MedicineParam param,@Param(Constants.WRAPPER) LambdaQueryWrapper<MedicineEntity> queryWrapper);
}
